from flask import Flask, render_template, request, jsonify

app = Flask(__name__)

@app.route('/post-position', methods=['POST'])
def post_position():
    # 读取数据
    data = request.get_json()
    if not data:
        return 'No data provided', 400
    else:
        print(data)
        return 'get data', 200
if __name__ == '__main__':
    app.run(host='0.0.0.0', port=3508)
